package cn.net.ait.hr.service;

import com.google.inject.Singleton;
import cn.net.ait.hr.entity.HrOrganization;
import org.guiceside.persistence.hibernate.dao.annotation.PO;
import org.guiceside.persistence.hibernate.dao.annotation.SaveOrUpdate;
import org.guiceside.persistence.hibernate.dao.annotation.ThreadSafe;
import org.guiceside.persistence.hibernate.dao.hquery.HQuery;
import org.guiceside.persistence.Transactional;
import org.guiceside.persistence.TransactionType;

/**
 * Created by IntelliJ IDEA.
 * User: zhenjia
 * Date: 2009-3-29
 * Time: 13:53:11
 * To change this template use File | Settings | File Templates.
 */
@Singleton
public class HrOrganizationService extends HQuery{

    @Transactional(type = TransactionType.READ_WRITE)
    @SaveOrUpdate
    public void save(@PO HrOrganization hrOrganization){
        
    }

    public void wzj(){
        System.out.println("wangzhenjia**************");
    }

    @ThreadSafe
    public void test(){
//        List<Selector>  ls=$(Long.valueOf(1),"useYn = Y","orgNameCn = AIT").logicOr(1,2).merge(1,2).getLs();
//        for(Selector s:ls){
//            System.out.print(s.getColumn()+"     ");
//            System.out.print(s.getCondition()+"     ");
//            System.out.print(s.getValue()+"     ");
//
//            System.out.print(s.getRelation()+"     ");
//            System.out.println(s.getGroupSelectorObjects()==null?0:s.getGroupSelectorObjects().size()+"     ");
//
//        }
    }
}
